home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / conqsrc.lha / Conquest / src / defs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-03  |  1.9 KB  |  77 lines

  1. #define DEBUG
  2.  
  3. #define NIL     0
  4. #define TRUE    1
  5. #define FALSE   0
  6.  
  7. #define nil     NIL
  8. #define true    TRUE
  9. #define false   FALSE
  10.  
  11. #define MAX_BOARD_SIZE 15
  12. #define BOARD_X_SIZE   MAX_BOARD_SIZE
  13. #define BOARD_Y_SIZE   MAX_BOARD_SIZE
  14. #define bdsize  MAX_BOARD_SIZE
  15. #define I_COST          3
  16. #define i_cost  I_COST
  17. #define MAX_VELOCITY   12
  18. #define MAX_VEL        MAX_VELOCITY
  19. #define max_vel MAX_VEL
  20. #define MAX_RANGE      bdsize
  21. #define MAX_WEAPONS    10
  22. #define INIT_UNITS     35
  23. #define initunit INIT_UNITS
  24. #define INIT_MONEY     30
  25. #define initmoney INIT_MONEY
  26. #define MB_COST         8
  27. #define mb_cost MB_COST
  28. #define C_COST         16
  29. #define c_cost C_COST
  30. #define S_COST          6
  31. #define s_cost S_COST
  32. #define AMB_COST       35
  33. #define amb_cost AMB_COST
  34. #define B_COST         70
  35. #define b_cost B_COST
  36. #define C_GUNS          7
  37. #define c_guns C_GUNS
  38. #define B_GUNS         40
  39. #define b_guns B_GUNS
  40. #define S_DEF           2
  41. #define s_def S_DEF
  42. #define T_DEF           1
  43. #define t_def T_DEF
  44. #define MAX_NUM_STARS  21
  45. #define NUM_STARS      conf.num_stars
  46. #define nstars NUM_STARS
  47. #define MAX_FLEETS     26
  48. #define INIT_VEL        1
  49. #define initvel INIT_VEL
  50. #define INIT_RANGE      5
  51. #define initrange INIT_RANGE
  52. #define INIT_WEAPONS    3
  53. #define initweap INIT_WEAPONS
  54. #define IU_RATIO        2
  55. #define iu_ratio IU_RATIO
  56. #define BLANK_LINE       "                              "
  57. #define blank_line BLANK_LINE
  58. #define T_E_PROB        10.0
  59. #define t_e_prob T_E_PROB
  60. #define T_E_VAR          5
  61. #define t_e_var T_E_VAR
  62. #define S_E_PROB        70.0
  63. #define s_e_prob S_E_PROB
  64. #define S_E_VAR         10
  65. #define s_e_var S_E_VAR
  66. #define C_E_PROB        90
  67. #define c_e_prob C_E_PROB
  68. #define C_E_VAR         10
  69. #define c_e_var C_E_VAR
  70. #define B_E_PROB        97.0
  71. #define b_e_prob B_E_PROB
  72. #define B_E_VAR         3
  73. #define b_e_var B_E_VAR
  74.  
  75. #define  MIN(x,y) ((x < y) ? x : y)
  76. #define OTHER_PLAYER(team) (1-(team))
  77.